package swarm // Package swarm import "xemo.top/docker/docker/api/types/swarm/runtime"

// NetworkAttachmentSpec 表示网络连接任务的运行时规范类型
// NetworkAttachmentSpec represents the runtime spec type for network attachment tasks
type NetworkAttachmentSpec struct {
	ContainerID string
}

// RuntimeType 是用于TaskSpec的运行时的类型
// RuntimeType is the type of runtime used for the TaskSpec
type RuntimeType string

// RuntimeURL is the proto type url
type RuntimeURL string

const (
	// RuntimeContainer is the container based runtime
	RuntimeContainer RuntimeType = "container"
	// RuntimePlugin is the plugin based runtime
	RuntimePlugin RuntimeType = "plugin"
	// RuntimeNetworkAttachment is the attachment runtime
	RuntimeNetworkAttachment RuntimeType = "attachment"
	// RuntimeURLContainer is the proto url for the container type
	RuntimeURLContainer RuntimeURL = "types.docker.com/RuntimeContainer"
	// RuntimeURLPlugin is the proto url for the plugin type
	RuntimeURLPlugin RuntimeURL = "types.docker.com/RuntimePlugin"
)
